package com.bean;

import javafx.beans.property.BooleanProperty;
import javafx.beans.property.SimpleBooleanProperty;

import java.time.LocalDate;

public class Visitor {
    private String vno;
    private String vname;
    private LocalDate vadate;
    private String pno;
    private String wno;
    private BooleanProperty selected = new SimpleBooleanProperty(false);

    public boolean isSelected() {
        return selected.get();
    }

    public void setSelected(boolean selected) {
        this.selected.set(selected);
    }

    public BooleanProperty selectedProperty() {
        return selected;
    }
    public String getVno() {
        return vno;
    }

    public void setVno(String vno) {
        this.vno = vno;
    }

    public String getVname() {
        return vname;
    }

    public void setVname(String vname) {
        this.vname = vname;
    }

    public LocalDate getVadate() {
        return vadate;
    }


    public void setVadate(LocalDate vadate) {
        this.vadate = vadate;
    }

    public String getPno() {
        return pno;
    }

    public void setPno(String pno) {
        this.pno = pno;
    }

    public String getWno() {
        return wno;
    }

    public void setWno(String wno) {
        this.wno = wno;
    }
    public Visitor(){}

    public Visitor(String vno, String vname, LocalDate vadate, String pno, String wno) {
        this.vno = vno;
        this.vname = vname;
        this.vadate = vadate;
        this.pno = pno;
        this.wno = wno;
    }


}
